package com.icoopoo.modules.baseTest.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.icoopoo.modules.baseTest.model.BaseTestModel;
import com.icoopoo.modules.baseTest.service.BaseTestService;


@Controller
@RequestMapping("baseTest")
public class BaseTestController {
	
	@Autowired
	private BaseTestService service;
	
	@RequestMapping("hello")
	@ResponseBody
	public BaseTestModel printHello() {
		
		System.out.println(service.printHello());
		return service.printHello();
	}

}
